﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000DC RID: 220
	internal class Ext32Header : IExtHeaderDecoder
	{
		// Token: 0x06000337 RID: 823 RVA: 0x0000C339 File Offset: 0x0000A739
		private Ext32Header()
		{
		}

		// Token: 0x06000338 RID: 824 RVA: 0x0000C344 File Offset: 0x0000A744
		public ExtensionHeader Read(byte[] bytes, int offset, out int readSize)
		{
			uint length = (uint)((int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4]);
			sbyte typeCode = (sbyte)bytes[offset + 5];
			readSize = 6;
			return new ExtensionHeader(typeCode, length);
		}

		// Token: 0x040000F7 RID: 247
		internal static readonly IExtHeaderDecoder Instance = new Ext32Header();
	}
}
